package com.wanger.swc.util.http.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.http.HttpMethod;

import java.util.Map;

@Data
@ApiModel("http代理请求参数信息")
public class HttpReqInfo {

    /**
     * 参考：
     *
     * @see HttpMethod
     */
    @ApiModelProperty("请求方式")
    private String method;

    /**
     * 参考：
     *
     * @see ReturnType
     */
    @ApiModelProperty("返回值方式")
    private String returnType;

    @ApiModelProperty("是否编码，默认是")
    private Boolean encode = false;

    @ApiModelProperty("请求地址")
    private String url;

    @ApiModelProperty("请求头信息")
    private Map<String, String> headers;

    @ApiModelProperty("请求参数")
    private Map<String, String> params;

    @ApiModelProperty("请求body")
    private String body;

}
